package com.googlecode.bizyap.core;

public class SSOContext {

	private static final SSOContext _this = new SSOContext();

	private ThreadLocal<Application> application = new ThreadLocal<Application>();
//	private ThreadLocal<ClassLoader> ctxClassLoader = new ThreadLocal<ClassLoader>();

	public static Application getApplication(){
		return _this.application.get();
	}

	public static void setApplication(Application application){
		_this.application.set(application);
	}

	public static void removeApplication(){
		_this.application.remove();
	}

//	public static ClassLoader getClassLoader(){
//		return _this.ctxClassLoader.get();
//	}
//
//	public static void setClassLoader(ClassLoader ctxClassLoader){
//		_this.ctxClassLoader.set(ctxClassLoader);
//	}
//
//	public static void removeClassLoader(){
//		_this.ctxClassLoader.remove();
//	}
}
